package offer2

/*
   剑指 Offer 5.替换空格

   示例 1：
   输入：s = "We are happy."
   输出："We%20are%20happy."
*/
import "strings"

func replaceSpace(s string) string {
	items := strings.Split(s, " ")
	res := strings.Join(items, "%20")
	return res
}
